package com.shuaihong.it.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author : 帅宏-coding
 * @version : 1.0
 * @date : 2025/5/24
 */
public class EncryptionUtils {

    /**
     * 和str混合密码,增加密密码复杂性
     */
    private final static String STR_CONTENT = "shuaihong-coding";

    public static String encryptVal(String str) {
        Digester md5 = new Digester(DigestAlgorithm.MD5);

        String digestHex = md5.digestHex(str + STR_CONTENT);

        return digestHex;
    }
}
